package com.king.security.exception;

import lombok.Data;

/**
 * @description:
 * @author: HHJ
 * @create: 2019-09-27 13:52
 **/
@Data
public class BusinessException extends RuntimeException {


    private String code;
    private String msg;


    public BusinessException(String message) {
        super(message);
        this.code = "0";
        this.msg = message;
    }

    public BusinessException(String code, String message) {
        super(message);
        this.code = code;
        this.msg = message;
    }

}
